package com.bjpowernode.boss.common.enums;

public enum ResponseCode {
    OK(1000,"成功！"),
    UNKNOWN(1001,"请稍后重试！"),
    REQUEST_PARAM_ERR(1002,"请求参数错误"),
    OPERATOR_LOGIN_NAME_PWD(2000,"操作员登录名称或密码错误！"),
    OPERATOR_LOGIN_NAME_PWD_1(2001,"操作员登录名称或密码错误！"),
    OPERATOR_SAVE_TOKEN(2002,"登录失败，请稍后重试！"),
    USER_LOGIN_NAME_EXISTS(3000,"商户登录名称已存在，请更换其他的"),
    USER_NOT_EXISTS(3001,"商户不可用"),

    PAYMENT_PRODUCT_CODE_EXISTS(4000,"支付产品编码已经存在"),
    PAYMENT_PRODUCT_NAME_EXISTS(4001,"支付产品名称已经存在"),
    PAYMENT_PRODUCT_CONFIG_EXISTS(4002,"支付产品已经包含此支付方式或类型"),
    PAYMENT_PRODUCT_NOT_EXISTS(4003,"支付产品不可用"),
    ;

    ResponseCode(int number, String msg) {
        this.number = number;
        this.msg = msg;
    }

    private int number;
    private String msg;

    public int getNumber() {
        return number;
    }

    public String getMsg() {
        return msg;
    }
}
